﻿@using TuanAnhPersonalWeb.HtmlHelpers
@model TuanAnhPersonalWeb.Models.CommentListViewModel
@{
    Layout = null;
}
    @foreach (var c in @Model.Comments)
    {
        <div style="border-top:1px gray dashed; margin-bottom: 30px; padding:10px; margin-left: 20px">
       <a style="color: aqua; font-weight: bolder; font-size: 15px">@c.USERNAME -- </a><a style="color:orangered">@c.DATE </a><br/>
            <a style="margin-left: 20px; color:#9e8a6a">---> @c.COMMENT_TEXT</a>
        </div>
    }
<div id="pager" style="width: 100%">
    @Html.PageLinks(Model.PagingInfo, x=> Url.Action("DetailProject", new { projectId = @Model.ProjectId, Page = x }))
</div>

@if (Roles.IsUserInRole("admin") || Roles.IsUserInRole("comment"))
{
    <div style="width: 100%; margin-top: 40px">
        @{ Html.RenderAction("Comment"); }
    </div>
}


